//
//  DeviceInfo.h
//  FishTank
//
//  Created by Scott Zhu on 14/11/25.
//  Copyright (c) 2014年 Scott Zhu. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface DeviceInfo : NSObject <NSCoding>

@property (copy, nonatomic) NSString *macAddress;
@property (copy, nonatomic) NSString *password;
@property (copy, nonatomic) NSString *ip;
@property (copy, nonatomic) NSString *name;//设备名称
@property (copy, nonatomic) NSString *did; //设备实际id
@property (copy, nonatomic) NSString *token;//token
@property (copy, nonatomic) NSString *device_model;//设备型号
@property (copy, nonatomic) NSString *update_time;//更新时间
@property (copy, nonatomic) NSString *create_time;//创建时间
@property (copy, nonatomic) NSString *ID;//网络管理ID
@property (nonatomic, assign) int loadSubsribeID; // 负载
@property (nonatomic, assign) int levelSubsribeID;  //水位
@property (nonatomic, assign) int tempSubsribeID; //温度
@property (nonatomic, assign) BOOL isLock;
@property (nonatomic, assign) BOOL is_temperature_on;//水温订阅状态
@property (nonatomic, assign) BOOL is_level_on;//水位订阅状态
@property (nonatomic, assign) BOOL is_load_on;//设备故障订阅状态

@property (strong, nonatomic) NSIndexPath *indexPath;

@property (nonatomic) BOOL alreadyExist;

- (id)initWithDid:(NSString *)did
       macAddress:(NSString *)macAddress
         password:(NSString *)password
               ip:(NSString *)ip
           isLock:(BOOL)isLock;

-(void)encodeWithCoder:(NSCoder *)aCoder;
-(id)initWithCoder:(NSCoder *)aDecoder;


@end
